//
//  HotBaseModel.m
//  BobNews
//
//  Created by lanou3g on 16/5/7.
//  Copyright © 2016年 YJC. All rights reserved.
//

#import "HotBaseModel.h"
#import "HotImgViewModel.h"
#import "HotMulImgViewModel.h"

@implementation HotBaseModel
+ (instancetype)modelWithDictionary:(NSDictionary *)dictionary {
    NSString *imgnewextra = dictionary[@"imgnewextra"];
    if (!imgnewextra) {
        HotImgViewModel *imgViewModel = [[HotImgViewModel alloc]init];
        [imgViewModel setValuesForKeysWithDictionary:dictionary];
        return imgViewModel;
    }else {
        HotMulImgViewModel *mulModel = [[HotMulImgViewModel alloc]init];
        [mulModel setValuesForKeysWithDictionary:dictionary];
        return mulModel;
    }
    return nil;
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}

@end
